local nya__qiangwu = fk.CreateSkill {

  name = "nya__qiangwu",

  tags = {  },

}



nya__qiangwu:addEffect("targetmod", {
  name = "nya__qiangwu",
  bypass_times = function(self, player, skill, scope, card, to)
    return player:hasSkill(nya__qiangwu.name) and card and card.trueName == "slash" and to:hasSkill("nya__play", true)
  end,
  bypass_distances = function(self, player, skill, card, to)
    return player:hasSkill(nya__qiangwu.name) and card and card.trueName == "slash" and not to:hasSkill("nya__play", true)
  end,
})

nya__qiangwu:addEffect(fk.Damage, {
  name = "#nya__qiangwu_trigger",
  mute = true,
  events = {fk.Damage},
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill("nya__qiangwu") and data.card and data.card.trueName == "slash" and
      player:hasSkill("nya__play", true)
  end,
  on_cost = function(self, event, target, player, data)
    return true
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    player:broadcastSkillInvoke("nya__qiangwu")
    room:notifySkillInvoked(player, "nya__qiangwu", "drawcard")
    player:drawCards(1, "nya__qiangwu")
  end,
})

return nya__qiangwu